package com.cheng.example.java.basics.demo;

public enum Day {

    MONDAY("星期一",1),
    TUESDAY("星期二",2);


    private Day(String name, int value) {
        this.name = name;
        this.value = value;
    }

    private String name;
    private int value;

    public static void main(String[] args) {
        for (Day day : Day.values()) {
            System.out.println(day.name);
            System.out.println(day.value);
        }
    }


}
